package com.sooth.system.user.view;

import com.dream.system.annotation.View;
import com.dream.template.annotation.Conditional;
import com.dream.template.condition.ContainsCondition;
import com.dream.template.condition.InCondition;
import com.sooth.system.user.table.SysUser;
import lombok.Data;

import java.util.List;

@Data
@View(SysUser.class)
public class SysUserDto {
    private Long deptId;
    @Conditional(value = ContainsCondition.class)
    private String userName;
    @Conditional(value = ContainsCondition.class)
    private String nickName;
    @Conditional(value = ContainsCondition.class)
    private String phone;
    @Conditional(value = InCondition.class, column = "dept_id")
    private List<Long> deptIds;
}
